//  引入 定义的字段变量
import { CITYLIST } from "../actionTypes"
// 定义初始值
const initState = {id: 45646871, spell: "shenyang", name: "沈阳"}
// 逻辑在下面写 
export default (state = initState, action) => {
    const { type, data } = action
   
    switch (type) {
        case CITYLIST:
            console.log(data)
            return  data
        default:
            return  state ;
    }
}
